/**
 * @description User Model
 * @author 李哲
 */
const mongoose = require('../db/db');

const schema = mongoose.Schema({
    username: {
        type: String,//数据类型
        require: true,//必须输入
        unique: true//不可重复
    },
    password: {
        type: String,
        require: true
    }
}, {
    timestamps: true
})

const user = mongoose.model('user', schema);

module.exports = user;